<template>
    <div>
        <table style="width: 100%;border: solid black 1px">
            <tr>
                <td>订单号</td>
                <td>金额</td>
                <td>创建时间</td>
            </tr>
            <tr>
                <td>
                    {{i.order_id}}
                </td>
                <td>
                    {{i.total}}
                </td>
                <td>
                    {{i.create}}
                </td>
            </tr>
        </table>
    </div>
</template>

<script>
export default {
    name: "orderInfo",
    data(){
        return{
            i: {},
            oid: this.$route.query.order_id
        }
    },
    methods:{
        get_info(oid){
            this.$axios.get('orderid/?order_id='+oid
            ).then(resp=>{
                this.i = resp.data.info
            })
        }
    },
    mounted() {
        this.get_info(this.$route.query.order_id)
    }
}
</script>

<style scoped>

</style>
